//
//  ZYTagModel.m
//  AudientList
//
//  Created by zhangweiwei on 16/6/15.
//  Copyright © 2016年 Erica. All rights reserved.
//

#import "ZYTagModel.h"

extern CGFloat const ZYTagCellTextLabelFontSize;

@interface ZYTagModel () {
    CGFloat _textWidth;
}

@end

@implementation ZYTagModel

- (CGFloat)textWidth
{
    if (!_textWidth) {
        
        _textWidth = [self.text sizeWithAttributes:@{NSFontAttributeName : [UIFont systemFontOfSize:ZYTagCellTextLabelFontSize]}].width;
        
    }
    return _textWidth;
}

@end
